//
//  LeverageTradeModel.h
//  XTXOneToOne
//
//  Created by Canny on 2018/10/29.
//  Copyright © 2018年 WK. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "HomeBaseModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface LTradeModel : NSObject

@property (nonatomic,strong)NSString * order_type;//":1,
@property (nonatomic,strong)NSString * price;//":"14.9900000000000000",
@property (nonatomic,strong)NSString * pair_id;//":1,
@property (nonatomic,strong)NSString * amount;//":14.99


@end

@interface LTAsks_Bids_Model : NSObject

@property (nonatomic,strong)NSString * type;
@property (nonatomic,strong)NSString * ts;
@property (nonatomic,strong)NSMutableArray * asks;
@property (nonatomic,strong)NSMutableArray * bids;



@end

@interface NowTickerModel : NSObject

@property (nonatomic,strong)NSString * margin ;//= 0;
@property (nonatomic,strong)NSString * max_price;//" = 0;
@property (nonatomic,strong)NSString * min_price;//" = 0;
@property (nonatomic,strong)NSString * pair_id;//" = 2;
@property (nonatomic,strong)NSString * price ;//= 0;
@property (nonatomic,strong)NSString * symbol ;//= BTCUSDT;
@property (nonatomic,strong)NSString * volume ;//= 0;

@end

@interface LTOrderCellModel : NSObject

@property (nonatomic,strong)NSString *actual_position;//
@property (nonatomic,strong)NSString *amount;//委托数量    @限价：数量；@市价：买单金额，卖单数量
@property (nonatomic,strong)NSString *average_price;//平均价格
@property (nonatomic,strong)NSString *avg_price;//" = "0.00000000";
@property (nonatomic,strong)NSString *create_time;//创建时间戳 14:45:03";
@property (nonatomic,strong)NSString *deal;// 已成交数量
@property (nonatomic,strong)NSString *ID ;//订单id
@property (nonatomic,strong)NSString *is_cancel;//是否可撤销    @1:是 @0:否
@property (nonatomic,strong)NSString *is_position;//是否可平仓    @1:是 @0:否
@property (nonatomic,strong)NSString *lever;// = 10;
@property (nonatomic,strong)NSString *margin ;//= "0.20000000";
@property (nonatomic,strong)NSString *order_sn;//订单号
@property (nonatomic,strong)NSString *order_status;//订单状态    @0:待成交；@1:已成交；@2:平仓中;@3:撤销
@property (nonatomic,strong)NSString *order_type;//订单类型    @1：限价买单；@2：限价卖单；@3：市价买单；@4：市价卖单
@property (nonatomic,strong)NSString *pair_id;//订单id
@property (nonatomic,strong)NSString *price ;//交易价格    @限价有，市价无
@property (nonatomic,strong)NSString *profit;// 浮动盈亏
@property (nonatomic,strong)NSString *symbol;// = BTCUSDT;
@property (nonatomic,strong)NSString *user_id;//" = 46;
@property (nonatomic,strong)NSString *source;//用户来源    @1：WEB；@2：移动端；@3：API


@end


@interface LTOrderDataModel : NSObject

@property (nonatomic,strong)NSString * count;
@property (nonatomic,strong)NSString * limit;
@property (nonatomic,strong)NSString * page;
@property (nonatomic,strong)NSArray  * list;

@end

@interface LeverageTradeModel : NSObject

singleton_h(LeverageTradeModel)


@property (nonatomic,strong)LTAsks_Bids_Model * asks_Bids_Model;

//@property (nonatomic,strong)HomeBaseTabCellModel * homeBaseModel;

@property (nonatomic,strong)NowTickerModel * tickerModel;

@property (nonatomic,strong)LTOrderDataModel * orderModel;

@end






NS_ASSUME_NONNULL_END
